package com.maple.soa.proxy;

import com.maple.soa.service.RentService;

/**
 * 静态代理-->RentService
 * @author lijian
 * @date 2020/7/6
 */
public class RentProxy implements RentService {
    private RentService rentService;
    private String rentName;

    @Override
    public void rent() {
        System.out.println("房东: " + rentName);
        rentService.rent();
    }

    public RentService getRentService() {
        return rentService;
    }

    public void setRentService(RentService rentService) {
        this.rentService = rentService;
    }

    public String getRentName() {
        return rentName;
    }

    public void setRentName(String rentName) {
        this.rentName = rentName;
    }
}
